#include "point.h"
#include <iostream>
#include <cmath>

using namespace std;

point::point() {
	xcoord = 0;
	ycoord = 0;
}

point::point(float x, float y) {
	xcoord = x;
	ycoord = y;
}

const void point::Display() {
	cout << "X-Koordinate: " << xcoord << endl;
	cout <<	"Y-Koordinate: " << ycoord << endl;
}

void point::MoveTo(float x, float y) {
	xcoord = x;
	ycoord = y;
}

const bool point::IsIdentical(point point2) {
	return (point2.xcoord == xcoord && point2.ycoord == ycoord);
}

void point::Shift(float x, float y) {
	xcoord += x;
	ycoord += y;
}

void point::RotateX(float wert) {
	ycoord = cos(wert) * ycoord;
}

void point::RotateY(float wert) {
	xcoord = cos(wert) * xcoord;
}